package com.yingxin.yxerp.module.common;

import java.util.HashMap;
import java.util.Map;

public class OfficialSealHelper {

    private static final Map<String, String> map = new HashMap<>();

    public static void init() {
        if (map.size() == 0) {
            for (OfficialSealType type : OfficialSealType.values()) {
                map.put(type.getType(), type.getStaticUrl());
            }
        }
    }


    public static String getUrl(String id) {
        init();
        return map.get(id);
    }

}